<?php
namespace Home\Controller;
use Think\Controller;
class ProductsController extends Controller {
    public function index(){
       $products = D("Products")->select();
       $this->assign('products', $products);
        $this->display();
    }
}